<template>
	<view>
		<hx-navbar ref="hxnb" :config="config" />
		<view class="flex flex-direction">
			<view class="tableTap flex align-center " style="margin-top: 172rpx;" @click="types(1)">
				<u-avatar src="../../static/cliend/c2.png" size="60" style="margin-left: 44rpx;"></u-avatar>
				<view style="color: #1E1E1E;font-size: 32rpx;font-weight:600;margin-left:96rpx ;">普通用户</view>
			</view>
			<view class="tableTap flex align-center" style="" @click="types(2)">
				<u-avatar src="../../static/cliend/c2.png" size="60" style="margin-left: 44rpx;"></u-avatar>
				<view style="color: #1E1E1E;font-size: 32rpx;font-weight:600;margin-left:96rpx ;">设计师</view>
			</view>
			<view class="tableTap flex align-center " style="" @click="types(3)">
				<u-avatar src="../../static/cliend/c2.png" size="60" style="margin-left: 44rpx;"></u-avatar>
				<view style="color: #1E1E1E;font-size: 32rpx;font-weight:600;margin-left:96rpx ;">安装工人</view>
			</view>
			<view class="tableTap flex align-center " style="" @click="types(4)">
				<u-avatar src="../../static/cliend/c2.png" size="60" style="margin-left: 44rpx;"></u-avatar>
				<view style="color: #1E1E1E;font-size: 32rpx;font-weight:600;margin-left:96rpx ;">工厂</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 标题栏配置
				config: {
					title: "",
					back: true,
					backgroundColor: [1, "rgb(240 243 250)"],
				},
				id: null
			}
		},
		onLoad(e) {
			this.id = e.id
		},
		methods: {
			types(e) {
				if (e == 3 || e == 4) {
					this.$tools.goPageNoAuth('../../clientEnd/page/decoration/Application?type=' + e + '&id=' + this.id)
				} else if (e == 1 || e == 2) {
					uni.switchTab({
						url: '/pages/tabbar/clientEndTabbar/ClientHome'
					})
					// this.$tools.goPageNoAuth('./loginBoot?type=' + e + '&id=' + this.id)
				}
			}
		}
	}
</script>

<style>
	.tableTap {
		width: 624rpx;
		height: 222rpx;
		background: #FFFFFF;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		opacity: 1;
		margin: 0 64rpx 36rpx 62rpx;
	}
</style>
